package com.beerbear.eurekaservicefirst.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

@RestController
@RequestMapping("/firstService")
public class OneController {

    @GetMapping("/call")
    public HashMap getMyService(){
        HashMap response = new HashMap();
        response.put("success","恭喜你调用eureka-service-first中的接口成功！");
        return response;
    }
}
